﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Senbo.Model.Entities
{
    public class AdminUser
    {
        public int Id { get; set; }
        [Required(ErrorMessage = "必须输入GUID")]
        public Guid Guid { get; set; }
        [Required]
        [StringLength(20)]
        public string Name { get; set; }
        [Required]
        [StringLength(20)]
        public string Code { get; set; }
        [Required]
        [StringLength(20)]
        public string Password { get; set; }
        [Required]
        [StringLength(20)]
        public string PasswordSalt { get; set; }
        [Required]
        public DateTime AddTime { get; set; }
        //[Required]
        //public virtual Category Category { get; set; }
    }
}
